<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <title>Medical Reminder Application</title>
        <link href="${pageContext.request.contextPath}/css/style.css" type="text/css" rel="stylesheet" />
        <link href="${pageContext.request.contextPath}/resources/smoothness/jquery-ui-1.7.2.custom.css" type="text/css" rel="stylesheet" />
        <script type="text/javascript" src="${pageContext.request.contextPath}/resources/jquery-1.3.2.min.js"></script>
        <script type="text/javascript" src="${pageContext.request.contextPath}/resources/jquery-ui.min.js"></script>
        <script type="text/javascript" src="${pageContext.request.contextPath}/resources/javascript.js"></script>
        <style type="text/css">
            li {
                margin-right: 10px;
            }
        </style>
    </head>
    <body>
        <div id="wrap">

            <div id="header">
                <img src="${pageContext.request.contextPath}/css/images/logo.jpg" alt="MediRem - closing the bridge between GP and Patient" width="950" />
                <h1><a href="${pageContext.request.contextPath}/gp">General Practitioner Panel</a></h1>
                <h2>For a better connection between GP and Patients</h2>
            </div>

            <div id="menu">
                <ul style="margin-left: 30px;">
                    <li><a href="${pageContext.request.contextPath}/gp/patient/list">Patients</a></li>
                    <li><a href="${pageContext.request.contextPath}/gp/consultations">Consultations</a></li>
                    <li><a href="${pageContext.request.contextPath}/gp/medication/list">Medications</a></li>
                    <li><a href="${pageContext.request.contextPath}/gp/profile">Profile</a></li>
                    <li><a href="${pageContext.request.contextPath}/gp/logout">Log out</a></li>
                </ul>
            </div>
            <div id="content">
                <c:if test="${!empty patientid}">
                    <div id="submenu">
                        <h2>Patient</h2>
                        <ul style="margin-left: 30px; letter-spacing: 1px;">
                            <li><a href="${pageContext.request.contextPath}/gp/patient">Overview</a></li>
                            <li><a href="${pageContext.request.contextPath}/gp/patient/prescription/list">Prescriptions</a></li>
                            <li><a href="${pageContext.request.contextPath}/gp/patient/measurement/list">Measurements</a></li>
                        </ul>
                    </div>
                    <div id="left">
                        <h2>Actions</h2>
                        <ul>
                            <li><a href="${pageContext.request.contextPath}/gp/patient/prescription/new">Add prescription</a></li>
                            <li><a href="${pageContext.request.contextPath}/gp/patient/measurement/new">Add measurement</a></li>
                            <li><a href="${pageContext.request.contextPath}/gp/patient/consultation/new">Set consultation</a></li>
                            <li><a href="${pageContext.request.contextPath}/gp/patient/profile/edit">Edit patient profile</a></li>
                        </ul>
                    </div>
                    <div id="right">
                    </c:if>